def file_read(file_path):
    if file_path[len(file_path)-3:len(file_path)] == "txt":
        file = open(file_path,mode="r",encoding="utf-8")
        return list(file)
    else:
        return -1

def file_write(file_path,value):
    if file_path[len(file_path)-3:len(file_path)] == "txt": 
        file = open(file_path,mode="w",encoding="utf-8")
        for line in value:
            file.write(line)
        return True
    return False
